package cn.tedu.blog.server.pojo.vo;

import cn.tedu.blog.server.utils.DateUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 雷茂林
 * @description: 返回查询实体类
 * @date
 */
@Data
public class UserListVO implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nick;

    @ApiModelProperty(value = "性别",name = "gender",example = "1")
    private Integer gender;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "发布评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = DateUtils.FORMAT_STRING,timezone="GMT+8")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = DateUtils.FORMAT_STRING,timezone="GMT+8")
    private LocalDateTime lastLogin;

    @ApiModelProperty(value = "最后更新时间")
    @JsonFormat(pattern = DateUtils.FORMAT_STRING,timezone="GMT+8")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "个性签名",name = "signature",example = "这个人很懒没有留下签名！")
    private String signature;

    @ApiModelProperty(value = "状态",name = "status",example = "1")
    private Integer status;

    @ApiModelProperty(value = "被赞量")
    private Integer pointedCount;

    @ApiModelProperty(value = "收藏量")
    private Integer collectCount;

    @ApiModelProperty(value = "粉丝量")
    private Integer beanCount;


    @TableField(exist = false)
    private String updateTimeStart;


    @TableField(exist = false)
    private String updateTimeEnd;


    @TableField(exist = false)
    private Integer pageNum = 0;


    @TableField(exist = false)
    private Integer pageSize = 5;

}
